using System;
using System.Diagnostics;
using System.IO;

namespace FileTransfer.Lib{
	public class ImageConverter{
		public void Convert(FileInfo info){
			ProcessStartInfo startInfo = new ProcessStartInfo(@"C:\Program Files\ImageMagick-6.6.2-Q16\Convert.exe");
			startInfo.CreateNoWindow = false;
			startInfo.UseShellExecute = true;
			startInfo.Arguments = info.FullName + " " + info.GetNewExtension(".png");
			Process.Start(startInfo).WaitForExit();
		}
	}
}